package com.zhou.provider.dao.impl.user;


import com.zhou.common.domain.User;
import com.zhou.provider.dao.UserDao;
import com.zhou.provider.mapper.IUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.xml.ws.Action;
import java.util.List;

/**
 * @author zkb
 *
 * 通过@Repository注解标注该类为持久化操作对象
 */

@Repository
public class UserDaoImpl implements UserDao {

    @Autowired
    private IUserMapper userMapper;


    @Override
    public User findUserById(Long id) {
        return userMapper.findUserById(id);
    }

    @Override
    public List<User> findAllUsers() {
        return userMapper.findAllUsers();
    }

    @Override
    public int insertUser(User user) {
        return 0;
    }

    @Override
    public int updateUser(User user) {
        return 0;
    }

    @Override
    public int deleteUser(Long id) {
        return 0;
    }
}
